home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
answrbok
/
5_5.lha
/
5_5
/
intset.h
< prev
next >
Wrap
Text File
|
1993-08-08
|
486b
|
24 lines
* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
* The C++ Answer Book */
* Tony Hansen */
* All rights reserved. */
ifndef INTSET_H
define INTSET_H
lass intset
int cursize, maxsize;
int *x;
ublic:
intset(int m, int n);
~intset();
int member(int t);
void insert(int t);
void remove(int i);
void iterate(int &i) { i = 0; }
int ok(int& i) { return i < cursize; }
int next(int& i) { return x[i++]; }
;
endif /* INTSET_H */